<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "Coupon.basicInfo"/> - <@s.m "global.edit"/></div>
	<form class="ropt" action="v_listCoupon.do">
	<input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<#include "/common/image_upload.html"/>
<@p.form id="jvForm" action="o_updateCoupon.do" labelWidth="12">
<@p.hidden name="id" value=coupon.id/>
<@p.text colspan="1" width="50" label="优惠券名称" name="couponName" value=coupon.couponName value=coupon.couponName  required="true" class="required" maxlength="100"/>
<@p.select colspan="1" label="shopInfo.shopName" name="shopId" value=coupon.shop.id list=listShop listKey="id" listValue="shopName" class="required" required="true"/><@p.tr/>
<@p.text colspan="1" width="50" label="金额" name="score" value=coupon.score value=coupon.score  required="true" class="required" maxlength="100"/>
<@p.select colspan="1" width="50" label="类型" name="couponType" value=coupon.couponType list=listCouponType listKey="dicCode" listValue="dicName" class="required" required="true"/><@p.tr/>
<@p.text colspan="1" width="50" label="有效期" name="validityDays" value=coupon.validityDays value=coupon.validityDays  required="true" class="required" maxlength="100" help="天"/>
<@p.text width="50" colspan="1" label="排序号" name="orderNum" value=coupon.orderNum maxlength="4" class="digits"  required="false" help="排序号越大越靠前"/><@p.tr/>
<@p.textarea label="简述"  name="content" cols="30" rows="2" value=coupon.content maxlength="500" colspan="2" width="50"/><@p.tr/>


<!-- 上传图片 -->
<@p.td label="图片" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath1" name="imgUrl" value=coupon.imgUrl style="width:220px"/>
<!--  <input type="button" value="<@s.m "imageupload.preview"/>" onclick="previewImg(1);" class="preview-button"/> --><br/>
<span id="ufc1" style="position:relative">
<input type='text' id='uploadFileText1' size="14"/>  
<input class="browse" type='button' value='<@s.m "global.browse"/>'/>
<input onchange="$('#uploadFileText1').val(this.value)" size="14" type="file" id="uploadFile1" class="file-button"/>
</span>
<label><input type="checkbox" onclick="$('#mark1').val(this.checked);"/><@s.m "imageupload.mark"/></label>
<input type="hidden" id="mark1" value="false"/> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(1);" class="upload-button"/><br/>
<@s.m "global.width"/>: <input type="text" id="zoomWidth1" value="100" size="5"/>
<@s.m "global.height"/>: <input type="text" id="zoomHeight1" value="70" size="5"/> 
<input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(1);" class="cut-button"/> 
</@p.td>
<@p.td colspan="1" width="50">
<img id="preImg1" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>
<!-- 图片end -->

<@p.td colspan="2">
	<@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/>
</@p.td>
</@p.form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>